<?php


namespace app\facade;


class Cart
{
    protected $goods = [];

    public function add($good)
    {
        echo "购物车中加入了商品" . $good . PHP_EOL;
        array_push($this->goods, $good);
    }
}